let data = {
    list: [
        {
            "stuNum": "0001",
            "courseName": "语文",
            "courseScore": "99",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "1",
            classId: 1
        },
        {
            "stuNum": "0001",
            "courseName": "数学",
            "courseScore": "98",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "2",
            classId: 1

        },
        {
            "stuNum": "0001",
            "courseName": "英语",
            "courseScore": "99",
            "createName": "1",
            "updateName": "1",
            "createTime": "2022-09-11 16:30:00",
            "updateTime": "2022-09-11 16:30:00",
            "id": "3",
            classId: 2
        },
    ]
}

module.exports = [
    //菜单列表
    {
        url: "/score/getScoreList",
        type: "post",
        response: config => {
            //参数  
            let { classId, pageIndex, pageSize } = config.body
            data.pageIndex = pageIndex
            data.pageSize = pageSize
            data.list = data.list.filter(i => i.classId == classId)
            console.log("select", data);
            return {
                statusCode: 200,
                data: data,
                msg: "OK"
            };
        }
    }
];
